package org.example.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class OrderPlacedEvent {         //表示消息队列中的一条消息
    private String orderNumber;
    private Object source;
    public OrderPlacedEvent(String orderNumber){
        this.orderNumber = orderNumber;
    }
    public OrderPlacedEvent(Object source, String orderNumber){
        this.orderNumber = orderNumber;
        this.source = source;
    }
}
